package year2022.month123;

import java.util.ArrayList;
import java.util.List;
import java.util.Vector;

public class VectorTest {

    public static void main(String[] args){

        List<Integer> list = new Vector<>();
//        List<Integer> list = new ArrayList<>();

        for (int i=0; i<20; i++){
            list.add(i);
        }

        for (int i : list){
            System.out.print(i+"\t");
        }
        System.out.println();

        for (int i : list){
            System.out.print(i+"\t");
//            list.remove(i);
            list.add(i);
        }

        for (int i : list){
            System.out.print(i+"\t");
        }

    }

}
